Foxit PDF RDK
FoxitRDKNative.FileReaderCallback Class Reference
Inheritance diagram for FoxitRDKNative.FileReaderCallback:
FoxitRDKNative.UrlFileRead

Public Member Functions

 GetSize ()
 Get total size of the file. More...
 
 ReadBlock (offset, size)
 Read a data block from the file. More...
 
 Release ()
 Called when to release everything. More...
 

Member Function Documentation

◆ GetSize()

FoxitRDKNative.FileReaderCallback.GetSize ( )

Get total size of the file.

Returns
File size, in bytes. Implementation can return 0 for any error.

◆ ReadBlock()

FoxitRDKNative.FileReaderCallback.ReadBlock ( offset  ,
size   
)

Read a data block from the file.

Parameters
[in]offsetByte offset from beginning of the file
[in]sizeNumber of bytes for the block.
Returns
A buffer receiving read data.

◆ Release()

FoxitRDKNative.FileReaderCallback.Release ( )

Called when to release everything.

Returns
None.